package org.dualr.litelog.entity;

import java.util.Date;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Text;
/**
 * Comment.java 
 * @author	DualR
 * @mail	dualrs@gmail.com
 * @site	http://mimaiji.appspot.com || http://www.mimaiji.com
 * @date	2009-8-3
 */
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Comment {
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long id;
	@Persistent
	private Long postId;
	@Persistent
	private String author;
	@Persistent
	private String mail;
	@Persistent
	private String website;
	@Persistent
	private Text content;
	@Persistent
	private Date commentDate;
	@Persistent
	private String ip;
	@Persistent
	private String status;
	@Persistent
	private String replyMailMark;
	
	

	public Comment(Long postId, String author, Date commentDate,
			Text content, String mail, String website, String ip,
			String replyMailMark) {
		this.postId = postId;
		this.author =author;
		this.commentDate = commentDate;
		this.content = content;
		this.mail = mail;
		this.website = website;
		this.ip =ip;
		this.replyMailMark = replyMailMark;
		
	}
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public Long getPostId() {
		return postId;
	}
	public void setPostId(Long postId) {
		this.postId = postId;
	}
	public String getAuthor() {
		return author;
	}
	public void setAuthor(String author) {
		this.author = author;
	}
	public String getMail() {
		return mail;
	}
	public void setMail(String mail) {
		this.mail = mail;
	}
	public String getWebsite() {
		return website;
	}
	public void setWebsite(String website) {
		this.website = website;
	}
	public Text getContent() {
		return content;
	}
	public void setContent(Text content) {
		this.content = content;
	}
	public Date getCommentDate() {
		return commentDate;
	}
	public void setCommentDate(Date commentDate) {
		this.commentDate = commentDate;
	}
	public String getIp() {
		return ip;
	}
	public void setIp(String ip) {
		this.ip = ip;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public String getReplyMailMark() {
		return replyMailMark;
	}
	public void setReplyMailMark(String replyMailMark) {
		this.replyMailMark = replyMailMark;
	}
	
}
